<!---
@自动生成 BY Kupe框架 www.kupebank.com
#date : 2018-03-02 11:43:48
#path : app/template/admin/user.edit.html
--->

<style>
.__status__{
	display:none;
}
</style>
<form class="layui-form" action="" style="padding:10px;width:450px;">
  <div class="layui-form-item">
    <label class="layui-form-label">用户名</label>
    <div class="layui-input-block">
      <input type="text" name="login" required  lay-verify="required" placeholder="请输入唯一标识,必须不重复" autocomplete="off" class="layui-input">
    </div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">姓名</label>
    <div class="layui-input-block">
      <input type="text" name="name"   lay-verify="" placeholder="请输入姓名" autocomplete="off" class="layui-input">
    </div>
  </div>

 <div class="layui-form-item">
    <label class="layui-form-label">登陆密码</label>
    <div class="layui-input-block">
      <input type="password" name="password"   lay-verify="" placeholder="请输入姓名" autocomplete="off" class="layui-input">
    </div>
  </div>

   <div class="layui-form-item">
    <label class="layui-form-label">所在分组</label>
    <div class="layui-input-block">
       {html_select  options=$groups name="group_id" value=$rt.group_id}	 
    </div>
  </div>

  
  <div class="layui-form-item">
    <label class="layui-form-label">是否开启</label>
    <div class="layui-input-block">
      <input type="checkbox" name="status" value=1 {if $rt.status}checked{/if} lay-skin="switch">
    </div>
  </div>
  <!----
  <div class="layui-form-item">
    <label class="layui-form-label">是否开启</label>
    <div class="layui-input-block">
      
	  <input type="radio" name="status" value="0" title="关闭">
      <input type="radio" name="status" value="1" title="开启" checked>
	   {html_radios value='开启' options=array('开启','关闭') name="status"}
    </div>
  </div>
   <div class="layui-form-item layui-form-text">
    <label class="layui-form-label">备注信息</label>
    <div class="layui-input-block">
      <textarea name="remark" placeholder="请输入模块简介" class="layui-textarea"></textarea>
    </div>
  </div>
 --->
  <div class="layui-form-item layui-form-text">
    <label class="layui-form-label">备注信息</label>
    <div class="layui-input-block">
       <input type="text" name="remark" value=""   lay-verify="" placeholder="请输入备注信息" autocomplete="off" class="layui-input">
    </div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">联系手机</label>
    <div class="layui-input-block">
      <input type="text" name="mobile" value=""   lay-verify="" placeholder="请输入联系手机" autocomplete="off" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">QQ微信</label>
    <div class="layui-input-block">
      <input type="text" name="qq" value=""   lay-verify="" placeholder="请输入QQ微信" autocomplete="off" class="layui-input">
    </div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">联系地址</label>
    <div class="layui-input-block">
      <input type="text" name="address" value=""   lay-verify="" placeholder="请输入联系地址" autocomplete="off" class="layui-input">
    </div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">     排序 </label>
    <div class="layui-input-block">
      <input type="text" name="porder" value="{$porder}"   lay-verify="number" placeholder="请输入作者" autocomplete="off" class="layui-input">
    </div>
  </div>



  <div class="layui-form-item">
    <div class="layui-input-block">
      <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
      <button type="reset" class="layui-btn layui-btn-primary">重置</button>
    </div>
  </div>

  <input type="hidden" value="" name="id">
</form>
 
<script>
/*formSubmit('{_url m="doedit"}','formDemo','comfirm:{_url m="index"}');*/
formSubmit('{_url m="doedit"}','formDemo','reload');
</script>

<script>
/*编辑专用*/
$(function(){
	{foreach $rt as $k => $v}
		$("input[name='{$k}'][type='text'],input[name='{$k}'][type='hidden']").val("{$v}");
	{/foreach}	
	$('[name="login"]').attr('disabled',true);
	//$("input[name='status']").val("1");
});
</script>